Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_jobs method in Comparison Monitor #444

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

VMRuiz
Copy link
Collaborator

@VMRuiz VMRuiz commented May 3, 2024

Fixes #442

@VMRuiz VMRuiz requested review from curita, rennerocha, wRAR and Gallaecio May 3, 2024 09:08
@VMRuiz VMRuiz force-pushed the feature/fix-get_jobs branch from aacecaf to f12a87c Compare May 3, 2024 09:21
@VMRuiz
Copy link
Collaborator Author

VMRuiz commented May 3, 2024

Force pushed branch again to remove incorrectly staged files

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.39%. Comparing base (a7e195f) to head (859d23b).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
+ Coverage   79.37%   79.39%   +0.01%     
==========================================
  Files          76       76              
  Lines        3234     3237       +3     
  Branches      537      537              
==========================================
+ Hits         2567     2570       +3     
  Misses        595      595              
  Partials       72       72              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Gallaecio Gallaecio closed this May 6, 2024
@Gallaecio Gallaecio reopened this May 6, 2024
Copy link
Member

@curita curita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me!

Thanks for addressing these and the CI issue 🙇‍♀️

start=start,
state=states,
count=number_of_jobs,
count=count,
filters=dict(has_tag=tags) if tags else None,
Copy link
Member

@curita curita May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (non-blocking): This was already like this, so we might need to update it in another PR, but filters=dict(has_tag=tags) if tags else None doesn't do anything, at least in the version of scrapinghub I'm using (2.4.0). has_tag=tags as a parameter by itself, without the filters wrap, does filter the jobs, though I'm not sure if that's backward compatible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any other issues about this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any other issues about this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that I know of, no! And that issue is not related to these changes. We should be good to merge 👍

@VMRuiz VMRuiz merged commit f0d8ea5 into master May 6, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

issue: Wrong previous jobs count in ZyteJobsComparisonMonitor
3 participants